from django.contrib import admin
from django.urls import path, re_path, include
from django.views.static import serve
from django.conf import settings

urlpatterns = [
    path('admin/', admin.site.urls),

    # 用户功能
    path('user/', include("user.urls")),

    # 视频功能
    path('video/', include("video.urls")),

    # 主页相关功能
    path('home/', include("home.urls")),

    # 订单相关功能
    path('order/', include("order.urls")),
    # 媒体文件
    re_path("^media/(?P<path>.*)", serve, {"document_root":settings.MEDIA_ROOT})
]
